package com.common.service;

import com.alibaba.android.arouter.facade.template.IProvider;

public interface IUserService extends IProvider {
    boolean isLogin();
    String getUsername();
    void login(String username, String password,LoginCallback loginCallback);
    void logout();

    interface LoginCallback {
        void onSuccess(String username, String userId);
        void onFailure(String errorMessage);
        void onError(Exception e);
    }
}